package cn.xsly.ymcc.fegin;


import cn.xsly.ymcc.query.UserQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(value = "service-user",fallbackFactory = UserFeginFactory.class)
public interface UserFeginClient {
    @RequestMapping(value = "/user/idlist", method = RequestMethod.POST)
    public List<Long> idlist(@RequestBody UserQuery query);
}
